import './assets/main.css'

import {createApp} from 'vue'
import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import * as ElementIcon from '@element-plus/icons-vue'
import WComponents from '@/components/base/index'

const app = createApp(App)


app.use(router)
app.use(ElementPlus, {locale: zhCn})
app.use(WComponents)
for (const icon in ElementIcon) {
    app.component(icon, (ElementIcon as any)[icon])
}


app.mount('#app')
